FROM centos-base:6.6

ENV HADOOP_PREFIX=/usr/hadoop/hadoop-2.6.0
ENV PATH=$PATH:$HADOOP_PREFIX/bin:$HADOOP_PREFIX/sbin

COPY ./hadoop-2.6.0.tar.gz  /usr/hadoop/

RUN cd /usr/hadoop/ && tar -xzf ./hadoop-2.6.0.tar.gz && rm /usr/hadoop/hadoop-2.6.0.tar.gz
RUN mkdir $HADOOP_PREFIX/tmp
COPY ./hadoop-conf/* $HADOOP_PREFIX/etc/hadoop/
COPY ./init.sh  /root/
CMD /root/init.sh
